/* 
 * File:   access_private_field.cpp
 * Author: Nguyen Minh Tan
 *
 * Created on October 29, 2008, 12:02 PM
 */

#include <stdlib.h>
#include <iostream>
using namespace std;
/*
 * 
 */
class PrivateClass{
private:
    string _priString;
    char* _pri2String;
    void traceHello(){
        cout << "Hello ^^!" <<endl;
    }
public:
    PrivateClass():_priString("tandaica0612"),_pri2String("toilatoi"){
        
    }
};
/*
int main(int argc, char** argv) {
    PrivateClass priclass;
    string* mychar = (string*)&priclass;
    cout << mychar[0] <<endl;
    char** mychar2 = (char**)&priclass;
    cout << mychar2[0] << endl;
    cout << mychar2[1] <<endl;
    void(**myfunc)() = (void(**)())&priclass;
    //?? not print "Hello ^^!"
    void(*myfunc2)() = myfunc[2];
    (*myfunc2)();
    return 0;
}
 **/
/*
tandaica0612
tandaica0612
toilatoi
 **/
